package com.sxyjhh.utils.util;

import java.io.InputStream;
import java.util.Properties;

/**
 * Created by Administrator on 2018/1/4.
 */
public class LoadJsonMapping {
    Properties properties = null;

    public LoadJsonMapping(String resourcesPath) {
        InputStream input = getClass().getClassLoader().getResourceAsStream(resourcesPath);
        properties = new Properties();
        try {
            properties.load(input);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public String getPropertiesValue(String keyName){
        return (String) properties.get(keyName);
    }
}
